package com.atguigu.gulimall.product.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Catelog2Vo {

    private Long catalog1Id;  // 1级分类Id
    private List<Catalog3Vo> catalog3List; // 3级子分类
    private Long id;
    private String name;

    @Data
    public static class Catalog3Vo{
        private Long catalog2Id; // 二级父分类Id
        private Long id;
        private String name;
    }
}
